<div class="blade-content " id="deviceList-blade">
  <div class="blade-static" *ngIf="isShow">
    <div class="form-group">
          <div class="form-control __checkbox">
            <label class="form-label" *ngFor="let deviceCategory of photoDeviceCategorys;">
                  <input type="checkbox" [checked]="deviceCategory?.isChecked" [value]="deviceCategory.deviceCategoryId" (click)="deviceCategoryIsChecked($event.target.checked,deviceCategory)">
                  <span class="check"></span>
                  <span class="name">{{deviceCategory.deviceCategoryName}}</span>
              </label>
          </div>
        </div>
  </div>
  <div class="blade-inner">
    <div class="inner-block">
      <div class="table-wrapper">
        <p-treeTable [value]="files" selectionMode="single" (onNodeSelect)="onNodeSelect($event)" [(selection)]="selectedFile">

          <p-column field="isChecked" header="选择">
            <ng-template let-node="rowData" pTemplate="body">
              <label class="form-control __checkbox">
                <input (click)="onItemCheack($event.target,node.data)" type="checkbox"  [checked]="node.data.isChecked">
                <span class="check"></span>
             </label>
            </ng-template>
          </p-column>

          <p-column field="deviceName" header="名称"></p-column>
          <p-column field="modelName" header="型号"></p-column>
          <p-column field="circuitName" header="线路"></p-column>
          <p-column field="deviceCategoryName" header="设备类别" *ngIf="isShow"></p-column>
          <p-column field="subArrayName" header="区域" *ngIf="isShow"></p-column>
          <p-column field="isChecked" header="是否标杆风机" *ngIf="!isShow">
            <ng-template let-node="rowData" pTemplate="body">
              <label class="form-control __checkbox">
                 <input type="checkbox" [checked]="node.data.turBenchMark"  disabled>
                <span class="check"></span>
                </label>
            </ng-template>
          </p-column>

        </p-treeTable>
      </div>
    </div>
  </div>
</div>